package com.zhuangjie.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单-券使用记录
 * </p>
 *
 * @author zhuangjie
 * @since 2024-03-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("order_coupon")
@ApiModel(value = "OrderCoupon对象", description = "")
public class OrderCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单-优惠券id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("订单id")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty("优惠券名称")
    @TableField("coupon_name")
    private String couponName;

    @ApiModelProperty("优惠券id")
    @TableField("coupon_id")
    private Long couponId;

    @ApiModelProperty("优惠抵扣金额")
    @TableField("deduction_amount")
    private BigDecimal deductionAmount;

    @ApiModelProperty("店铺需要承担的金额")
    @TableField("shop_bearing_amount")
    private BigDecimal shopBearingAmount;

}
